<?php 
	namespace Index\Model;
	use Think\Model;
/**
 * 问提表模型
 */
	class QuestionModel extends Model {

		
		public function hotview()
		{
			return $this->field('id,title,view_num')->order('view_num desc')->limit(10)->select();
		}

		public function hotanswer()
		{
			return $this->field('id,title,answer_num')->order('answer_num desc')->limit(10)->select();
		}


	};

 ?>